package com.itheima.sh.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.sh.pojo.User;
import com.itheima.sh.user.mapper.UserMapper;
import com.itheima.sh.user.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IUserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public User findUserById(String username) {
        User user = userMapper.findUserById(username);
        return user;
    }
}
